﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ENG.TeachersDiary.Forms
{
  public partial class FrmInput : Form
  {
    public FrmInput()
    {
      InitializeComponent();
    }

    public static string ShowDialog(string title, string text, string defaultValue)
    {
      FrmInput f = new FrmInput();
       
      f.Text = title;
      f.lblText.Text = text;
      f.txtText.Text = defaultValue;

      if (f.ShowDialog() == DialogResult.Cancel)
        return null;
      else
        return f.txtText.Text;
    }
  }
}
